package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.MstCaScheduleLesson;
import com.dingreading.cloud.soms.entity.table.MstCaScheduleLessonTableDef;
import com.dingreading.cloud.soms.mapper.MstCaScheduleLessonMapper;
import com.dingreading.cloud.soms.service.MstCaScheduleLessonService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务层实现。
 *
 * @author Administrator
 * @since 2024-10-21
 */
@Service
public class MstCaScheduleLessonServiceImpl extends BaseServiceImpl<MstCaScheduleLessonMapper, MstCaScheduleLesson, MstCaScheduleLessonTableDef> implements MstCaScheduleLessonService {

    @Override
    protected MstCaScheduleLessonTableDef getTable() {
        return MstCaScheduleLessonTableDef.mstCaScheduleLesson;
    }

    @Override
    public List<MstCaScheduleLesson> listByStoreUid(String mstStoreUid) {
        return getMapper().selectListByCondition(table.storeUid.eq(mstStoreUid));
    }
}
